<template>
    <view
        :class="['container', isDarkMode ? 'dark' : '']"
        :style="'background-size: 100% auto; height: 100vh; background-image: url(+bgImage+); background-size: 100% auto; background-position: center center;'"
        v-if="boxInfo"
    >
        <text-nav-bar @__l="__l" :darkMode="isDarkMode" :title="boxInfo.title" vueId="10f979ab-1"></text-nav-bar>
        <navigator url="/pages/myScore/index">
            <view class="float-headimg-c">
                <image class="headimg" mode="aspectFill" :src="userInfo.headimg"></image>
                <view class="score">{{ $root.f0 + scoreAlias }}</view>
            </view>
        </navigator>
        <navigator url="/pages/rule/index?type=box">
            <view class="float-btn rule" hoverClass="hover">
                <image mode="aspectFill" src="/static/static/smallBox/rule.png"></image>
                <text>规则</text>
            </view>
        </navigator>
        <navigator url="/pages/myBox/index">
            <view class="float-btn my" hoverClass="hover">
                <image mode="aspectFill" src="/static/static/smallBox/my-box.png"></image>
                <text>盒柜</text>
            </view>
        </navigator>
        <view @tap="__e" class="float-btn share" :data-event-opts="[['tap', [['e0', ['$event']]]]]" hoverClass="hover">
            <text class="new-iconfont icon-wechat"></text>
            <text>分享</text>
        </view>
        <view @tap="__e" class="float-btn rand-list" :data-event-opts="[['tap', [['e1', ['$event']]]]]" hoverClass="hover" v-if="boxInfo.is_hidden_sku_rank">
            <text>榜单</text>
        </view>
        <view class="body">
            <view :class="['yaoyiyao', isSmallDevice ? 'small' : '']" v-if="boxInfo.open_mode == 1 && freeTipLimit > 0">
                <image src="/static/static/smallBox/yaoyiyao.png"></image>
                <text>摇一摇</text>
            </view>
            <view :class="['box', isSmallDevice ? 'small' : '']">
                <view :class="['box-img', animateStatus === 1 ? 'move' : '', animateStatus === 2 ? 'move2' : '']">
                    <image :src="boxInfo.sku_3d_image || defaultBoxImage"></image>
                </view>
            </view>
            <view class="box-number">
                <text>{{ 'NO.' + roomInfo.number + '-' + skuIndex }}</text>
                <view class="inner-tips">{{ boxTips }}</view>
            </view>
            <view class="card-list" v-if="boxInfo.open_mode == 1">
                <view @tap="__e" class="item" :data-event-opts="[['tap', [['e2', ['$event']]]]]" hoverClass="hover" v-if="boxInfo.is_exclude_box">
                    <image src="/static/static/smallBox/tips.png"></image>
                    <text>排除卡</text>
                </view>
                <view @tap="__e" class="item" :data-event-opts="[['tap', [['e3', ['$event']]]]]" hoverClass="hover" v-if="boxInfo.is_show_box">
                    <image src="/static/static/smallBox/toushi.png"></image>
                    <text>透视卡</text>
                </view>
            </view>
            <view class="tips" v-else>
                <view>温馨提示: 此盲盒购买后将随机发货, 不进行在线开盒</view>
            </view>
            <scroll-view :class="['thumb-list', isSmallDevice ? 'small' : '']" :scrollX="true">
                <view class="item" v-for="(item, index) in $root.l0" :key="index">
                    <image
                        @tap="__e"
                        class="thumb"
                        :data-event-opts="[['tap', [['e4', ['$event']]]]]"
                        mode="aspectFit"
                        :src="item[$orig].thumb + '?x-oss-process=image/resize,w_300'"
                    ></image>

                    <view class="title">{{ item[$orig].title }}</view>

                    <view class="price-c">
                        <price-display @__l="__l" :info="item[$orig]" :vueId="'10f979ab-2-' + index"></price-display>
                    </view>

                    <view class="tips" v-if="item[$orig].type === 1">隐藏款</view>

                    <view class="tips-bottom excluded" v-if="item.m0">这不是我</view>

                    <block v-else>
                        <view class="tips-bottom showed" v-if="item.m1">这是我</view>
                    </block>
                </view>
            </scroll-view>
        </view>
        <view :class="['footer', 'safe-area-bottom', isSmallDevice ? 'small' : '']">
            <view class="btns">
                <view @tap="__e" class="button" :data-event-opts="[['tap', [['changeone', ['$event']]]]]" hoverClass="hover">
                    <image src="/static/static/smallBox/refresh.png"></image>
                    <text>换一盒</text>
                </view>
                <view
                    @tap="__e"
                    class="button disable"
                    :data-event-opts="[['tap', [['showPreviewTips', ['$event']]]]]"
                    hoverClass="hover"
                    v-if="boxInfo.is_presell && !boxInfo.presell_mode"
                >
                    预售中
                </view>
                <view @tap="__e" class="button" :data-event-opts="[['tap', [['buyNow', ['$event']]]]]" hoverClass="hover" v-else>就买它</view>
            </view>
        </view>
        <open-box-popup
            @__l="__l($event, { eventOpts: [['^close', [['goBack']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['goBack']]]] })"
            :boxImg="boxInfo.sku_3d_image"
            :config="baseConfig"
            :data-event-opts="[['^close', [['goBack']]]]"
            :order="order"
            vueId="10f979ab-3"
            v-if="isOpenPopup"
        ></open-box-popup>
        <view class="box-tips" v-if="isShowTips">
            <view @tap="__e" class="close-btn" :data-event-opts="[['tap', [['e5', ['$event']]]]]">
                <text class="new-iconfont icon-wrong"></text>
            </view>
            <view class="text">{{ '' + tips + '' }}</view>
        </view>
        <view class="tips-card-c" v-if="isShowExcludeCard">
            <view class="tips-content animated bounceInLeft">
                <view class="title-c">
                    <view class="title">排除卡</view>
                    <navigator url="/pages/myCard/index">
                        <view class="total">
                            {{ '' + excludeBoxCard.my_balance + '张' }}
                            <text class="new-iconfont icon-arrow-right"></text>
                        </view>
                    </navigator>
                </view>
                <view class="item-title">卡券功能</view>
                <view class="item-text">使用排除卡可以排除盒子里不是某个款</view>
                <view class="item-title">兑换方式</view>
                <view class="item-text">{{ '消耗' + excludeBoxCard.score_price + scoreAlias + '兑换' }}</view>
                <navigator url="/pages/myCard/index" v-if="!excludeBoxCard.my_balance">
                    <view class="get-btn">暂无可用，去兑换</view>
                </navigator>
                <view @tap="__e" class="get-btn" :data-event-opts="[['tap', [['useCard', ['exclude_box']]]]]" v-else>使用1张排除卡</view>
            </view>
            <view @tap="__e" class="close-btn animated bounceInRight" :data-event-opts="[['tap', [['e6', ['$event']]]]]">
                <text class="new-iconfont icon-wrong"></text>
            </view>
        </view>
        <view class="tips-card-c" v-if="isShowOpenCard">
            <view class="tips-content animated bounceInLeft">
                <view class="title-c">
                    <view class="title">透视卡</view>
                    <navigator url="/pages/myCard/index">
                        <view class="total">
                            {{ '' + showBoxCard.my_balance + '张' }}
                            <text class="new-iconfont icon-arrow-right"></text>
                        </view>
                    </navigator>
                </view>
                <view class="item-title">卡券功能</view>
                <view class="item-text">使用透视卡可以直接显示盒子里的款式</view>
                <view class="item-title">兑换方式</view>
                <view class="item-text">{{ '消耗' + showBoxCard.score_price + scoreAlias + '兑换' }}</view>
                <navigator url="/pages/myCard/index" v-if="!showBoxCard.my_balance">
                    <view class="get-btn">暂无可用，去兑换</view>
                </navigator>
                <view @tap="__e" class="get-btn" :data-event-opts="[['tap', [['useCard', ['show_box']]]]]" v-else>使用1张透视卡</view>
            </view>
            <view @tap="__e" class="close-btn animated bounceInRight" :data-event-opts="[['tap', [['e7', ['$event']]]]]">
                <text class="new-iconfont icon-wrong"></text>
            </view>
        </view>
        <pay-card
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^success', [['paySuccess']]],
                        ['^cancel', [['e8']]]
                    ]
                })
            "
            @cancel="
                __e($event, {
                    eventOpts: [
                        ['^success', [['paySuccess']]],
                        ['^cancel', [['e8']]]
                    ]
                })
            "
            @success="
                __e($event, {
                    eventOpts: [
                        ['^success', [['paySuccess']]],
                        ['^cancel', [['e8']]]
                    ]
                })
            "
            :buyTotal="buyTotal"
            :data-event-opts="[
                ['^success', [['paySuccess']]],
                ['^cancel', [['e8']]]
            ]"
            :info="payCardInfo"
            vueId="10f979ab-4"
            v-if="isShowPayCard"
        ></pay-card>
        <share-popup
            @__l="__l($event, { eventOpts: [['^close', [['e9']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['e9']]]] })"
            :data-event-opts="[['^close', [['e9']]]]"
            :info="posterInfo"
            vueId="10f979ab-5"
            v-if="isSharePopup"
        ></share-popup>
        <danmus @__l="__l" :list="danmuList" :setting="danmuSetting" :uuid="boxUuid" vueId="10f979ab-6" v-if="danmuSetting.is_enabled"></danmus>
        <uni-popup @__l="__l($event, { ref: 'detailPopup' })" class="vue-ref" data-ref="detailPopup" style="z-index: 1000" type="bottom" vueId="10f979ab-7" :vueSlots="['default']">
            <box-sku-popup
                @__l="__l($event, { eventOpts: [['^close', [['e10']]]] })"
                @close="__e($event, { eventOpts: [['^close', [['e10']]]] })"
                :data-event-opts="[['^close', [['e10']]]]"
                :detailImageList="boxInfo.detail_images"
                :skuList="skuList"
                :vueId="'10f979ab-8' + ',' + '10f979ab-7'"
            ></box-sku-popup>
        </uni-popup>
        <free-ticket-float-btn
            @__l="__l($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            @useFreeTicket="__e($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            :data-event-opts="[['^useFreeTicket', [['useFreeTicket']]]]"
            nodeType="box"
            :uuid="boxUuid"
            vueId="10f979ab-9"
            v-if="boxInfo.is_invite_enabled"
        ></free-ticket-float-btn>
        <hidden-sku-rank
            @__l="__l($event, { eventOpts: [['^close', [['e11']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['e11']]]] })"
            :data-event-opts="[['^close', [['e11']]]]"
            :info="boxInfo"
            vueId="10f979ab-10"
            v-if="boxInfo.uuid && isShowHiddenSkuRank"
        ></hidden-sku-rank>
    </view>
</template>

<script>
import textNavBar from '@/components/TextNavBar/TextNavBar';
import priceDisplay from '@/components/PriceDisplay/PriceDisplay';
import openBoxPopup from '@/components/OpenBoxPopup/OpenBoxPopup';
import sharePopup from '@/components/SharePopup/SharePopup';
import danmus from '@/components/Danmus/Danmus';
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup';
import boxSkuPopup from '@/components/BoxSkuPopup/BoxSkuPopup';
import freeTicketFloatBtn from '@/components/FreeTicketFloatBtn/FreeTicketFloatBtn';
import hiddenSkuRank from '@/components/HiddenSkuRank/HiddenSkuRank';
import payCard from '@/pages/openBox/components/PayCard';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/openBox/index'],
    {
        '0d5e': function (t, n, e) {
            'use strict';

            var o = e('0fb5');
            e.n(o).a;
        },
        '0fb5': function (t, n, e) {},
        '6dd6': function (t, n, e) {
            'use strict';

            e.r(n);
            var o = e('c164');
            var i = e('dc38');
            for (var u in i) {
                if (['default'].indexOf(u) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return i[t];
                        });
                    })(u);
                }
            }
            e('0d5e');
            var a = e('f0c5');
            var r = Object(a.a)(i.default, o.b, o.c, false, null, null, null, false, o.a, void 0);
            n.default = r.exports;
        },
        9405: function (t, n, e) {
            'use strict';

            (function (t, n) {
                var o = e('4ea4');
                e('18ba');
                o(e('66fd'));
                var i = o(e('6dd6'));
                t.__webpack_require_UNI_MP_PLUGIN__ = e;
                n(i.default);
            }.call(this, e('bc2e').default, e('543d').createPage));
        },
        b9f6: function (t, n, e) {
            'use strict';

            (function (t) {
                var o = e('4ea4');
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var i = o(e('2eee'));
                var u = o(e('c973'));
                var a = o(e('9523'));
                var r = o(e('452d'));
                var s = e('26cb');
                function c(t, n) {
                    var e = Object.keys(t);
                    if (Object.getOwnPropertySymbols) {
                        var o = Object.getOwnPropertySymbols(t);
                        if (n) {
                            o = o.filter(function (n) {
                                return Object.getOwnPropertyDescriptor(t, n).enumerable;
                            });
                        }
                        e.push.apply(e, o);
                    }
                    return e;
                }
                function d(t) {
                    for (var n = 1; n < arguments.length; n++) {
                        if (null != arguments[n]) {
                            var e = arguments[n];
                        } else {
                            var e = {};
                        }
                        if (n % 2) {
                            c(Object(e), true).forEach(function (n) {
                                (0, a.default)(t, n, e[n]);
                            });
                        } else {
                            Object.getOwnPropertyDescriptors
                                ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e))
                                : c(Object(e)).forEach(function (n) {
                                      Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
                                  });
                        }
                    }
                    return t;
                }
                e('1e0a');
                var f = {
                    name: 'openBox',
                    mixins: [r.default],
                    components: {
                        PayCard: function () {
                            Promise.all([e.e('common/vendor'), e.e('pages/openBox/components/PayCard')])
                                .then(
                                    function () {
                                        return resolve(e('7835'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        }
                    },
                    data: function () {
                        return {
                            boxUuid: '',
                            roomUuid: '',
                            skuIndex: '',
                            pageUuid: '',
                            skuList: [],
                            boxInfo: {},
                            roomInfo: {},
                            isShowPayCard: false,
                            isShowExcludeCard: false,
                            isShowOpenCard: false,
                            showBoxCard: {
                                score_price: 0,
                                my_balance: 0
                            },
                            excludeBoxCard: {
                                score_price: 0,
                                my_balance: 0
                            },
                            order: {},
                            yaoyiyaoFlag: false,
                            isPay: false,
                            isInit: false,
                            isOpenPopup: false,
                            animateStatus: 0,
                            visible: false,
                            loading: false,
                            tipsList: {},
                            tips: '',
                            isShowTips: false,
                            isSharePopup: false,
                            orderUuid: '',
                            danmuList: [],
                            danmuSetting: {},
                            buyTotal: 1,
                            remainTime: 0,
                            isShowSkuList: false,
                            baseConfig: {},
                            isShowHiddenSkuRank: false
                        };
                    },
                    computed: d(
                        d({}, (0, s.mapGetters)(['userInfo'])),
                        {},
                        {
                            defaultBoxImage: function () {
                                return this.isInit ? 'https://cdn2.hquesoft.com/box/openbox.png' : '';
                            },
                            config: function () {
                                return this.$store.getters.setting.open_box;
                            },
                            payCardInfo: function () {
                                return {
                                    box: this.boxInfo,
                                    room: this.roomInfo,
                                    sku_index: this.skuIndex,
                                    page_uuid: this.pageUuid
                                };
                            },
                            deviceHeight: function () {
                                return this.$device.screenHeight;
                            },
                            isSmallDevice: function () {
                                return this.$device.screenHeight < 750;
                            },
                            instance: function () {
                                return this.boxInfo.instance;
                            },
                            posterInfo: function () {
                                return {
                                    money_price: this.boxInfo.money_price,
                                    score_price: this.boxInfo.score_price,
                                    title: this.boxInfo.title,
                                    path: this.getShareConfig().path,
                                    thumb: this.boxInfo.thumb
                                };
                            },
                            freeTipLimit: function () {
                                return null === this.boxInfo.free_tips_limit ? 2 : this.boxInfo.free_tips_limit;
                            },
                            bgImage: function () {
                                return this.isInit ? this.boxInfo.room_bg_image || this.config.bg_image || 'https://cdn2.hquesoft.com/box/bg.png' : '';
                            },
                            isDarkMode: function () {
                                return 2 === this.boxInfo.bg_color_mode;
                            },
                            boxTips: function () {
                                return this.boxInfo.tips || '官方正品，非质量问题不支持退换';
                            },
                            share: function () {
                                return {
                                    title: this.boxInfo.title,
                                    thumb: this.boxInfo.thumb,
                                    desc: '',
                                    path: '/pages/boxDetail/index?uuid=' + this.boxInfo.uuid + '&invite_node=box-' + this.boxInfo.uuid
                                };
                            }
                        }
                    ),
                    onLoad: function (n) {
                        var that = this;
                        return (0, u.default)(
                            i.default.mark(function o() {
                                return i.default.wrap(function (o) {
                                    for (;;) {
                                        switch ((o.prev = o.next)) {
                                            case 0:
                                                that.roomUuid = n.roomUuid;
                                                that.skuIndex = parseInt(n.index);
                                                that.boxUuid = n.uuid;
                                                t.showLoading({
                                                    title: '加载中',
                                                    mask: true
                                                });
                                                that.initRoom().then(function (t) {
                                                    that.isInit = true;
                                                    'wholeRoom' === n.buyMode
                                                        ? (that.changeone(), (that.buyTotal = 0), (that.isShowPayCard = true))
                                                        : n.buyMode && ((that.buyTotal = parseInt(n.buyMode)), (that.isShowPayCard = true));
                                                    that.getDanmu();
                                                });
                                                t.hideLoading();
                                                t.$on('startShare', function () {
                                                    that.isSharePopup = true;
                                                });
                                            case 7:
                                            case 'end':
                                                return o.stop();
                                        }
                                    }
                                }, o);
                            })
                        )();
                    },
                    onShow: function () {
                        var that = this;
                        this.$store.dispatch('getUserInfo');
                        this.initData();
                        t.onAccelerometerChange(function (t) {
                            1 != that.boxInfo.open_mode ||
                                that.yaoyiyaoFlag ||
                                0 === that.boxInfo.free_tips_limit ||
                                (((Math.abs(t.x) > 0.9 && Math.abs(t.y) > 0.9) || (Math.abs(t.x) > 0.9 && Math.abs(t.z) > 0.9)) &&
                                    (that.yaoyiyaoFlag ||
                                        (that.$playAudio('yao'),
                                        that.getFreeTips(),
                                        (that.yaoyiyaoFlag = true),
                                        setTimeout(function () {
                                            that.yaoyiyaoFlag = false;
                                        }, 2500))));
                        });
                    },
                    onUnload: function () {
                        t.stopAccelerometer();
                    },
                    onHide: function () {
                        t.stopAccelerometer();
                    },
                    methods: {
                        useFreeTicket: function () {
                            var that = this;
                            t.showLoading({
                                title: '提交中',
                                icon: 'none'
                            });
                            this.$http('/box-order/confirm', 'POST', {
                                room_id: this.payCardInfo.room.id,
                                sku_index: this.payCardInfo.sku_index,
                                page_uuid: this.payCardInfo.page_uuid,
                                total: 1,
                                is_use_free_ticket: 1
                            }).then(function (e) {
                                t.hideLoading();
                                var o = e.data;
                                o.is_need_pay
                                    ? t.showToast({
                                          title: '兑换出错~',
                                          icon: 'none'
                                      })
                                    : that.paySuccess(o.order);
                            });
                        },
                        getDanmu: function () {
                            var that = this;
                            this.$http('/danmus/box_open?node_id='.concat(this.boxInfo.id)).then(function (n) {
                                that.danmuSetting = n.data.setting;
                                that.danmuList = n.data.list;
                            });
                        },
                        showPreviewTips: function () {
                            t.showToast({
                                title: '此款正在预售中，暂不可购买哦~',
                                icon: 'none'
                            });
                        },
                        isExcluded: function (t) {
                            return (
                                -1 !==
                                (this.tipsList.exclude || []).findIndex(function (n) {
                                    return n.sku_id === t.id;
                                })
                            );
                        },
                        isShowed: function (t) {
                            return (
                                -1 !==
                                (this.tipsList.show || []).findIndex(function (n) {
                                    return n.sku_id === t.id;
                                })
                            );
                        },
                        initRoom: function () {
                            var that = this;
                            return this.$http('/rooms/'.concat(this.roomUuid, '/skus/').concat(this.skuIndex)).then(function (e) {
                                that.boxInfo = e.data.box;
                                that.roomInfo = e.data.room;
                                that.skuList = e.data.sku_list;
                                that.pageUuid = e.data.page_uuid;
                                that.baseConfig = e.data.config;
                                t.setNavigationBarTitle({
                                    title: that.boxInfo.title
                                });
                            });
                        },
                        initData: function () {
                            var that = this;
                            this.$http('/user/cards').then(function (n) {
                                that.showBoxCard = n.data.show_box_card;
                                that.excludeBoxCard = n.data.exclude_box_card;
                            });
                        },
                        previewSmallBoxThumb: function (n) {
                            var e = this.skuList.map(function (t) {
                                return t.thumb;
                            });
                            t.previewImage({
                                urls: e,
                                current: n
                            });
                        },
                        showTips: function (t) {
                            this.tips = t;
                            this.isShowTips = true;
                        },
                        buyNow: function () {
                            this.buyTotal = 1;
                            this.isShowPayCard = true;
                        },
                        useCard: function (n) {
                            var that = this;
                            var o = '温馨提示';
                            var a = '确定要使用1张透视卡吗~';
                            if ('exclude_box' === n) {
                                o = '温馨提示';
                                a = '确定要使用1张排除卡吗~';
                            }
                            t.showModal({
                                title: o,
                                content: a,
                                success: (function () {
                                    var o = (0, u.default)(
                                        i.default.mark(function o(u) {
                                            return i.default.wrap(function (o) {
                                                for (;;) {
                                                    switch ((o.prev = o.next)) {
                                                        case 0:
                                                            if (u.confirm) {
                                                                t.showLoading({
                                                                    title: '提交中'
                                                                });
                                                                that.$http('/box/use-card', 'POST', {
                                                                    card_type: n,
                                                                    page_uuid: that.pageUuid
                                                                }).then(function (n) {
                                                                    that.showTips(n.data.tips);
                                                                    that.isShowExcludeCard = false;
                                                                    that.isShowOpenCard = false;
                                                                    that.tipsList = n.data.tips_list;
                                                                    t.hideLoading();
                                                                    that.initData();
                                                                });
                                                            }
                                                        case 1:
                                                        case 'end':
                                                            return o.stop();
                                                    }
                                                }
                                            }, o);
                                        })
                                    );
                                    return function (t) {
                                        return o.apply(this, arguments);
                                    };
                                })()
                            });
                        },
                        getFreeTips: function () {
                            var that = this;
                            this.$http('/box/use-card', 'POST', {
                                card_type: 'free_tips',
                                page_uuid: this.pageUuid
                            }).then(function (n) {
                                that.showTips(n.data.tips);
                                that.isShowExcludeCard = false;
                                that.isShowOpenCard = false;
                                that.tipsList = n.data.tips_list;
                            });
                        },
                        handleOk: function () {
                            t.redirectTo({
                                url: '/pages/orderList/index'
                            });
                        },
                        visibleChange: function () {
                            this.visible = !this.visible;
                        },
                        changeone: function (t) {
                            var that = this;
                            this.animateStatus = 1;
                            this.$http('/box/change-sku', 'POST', {
                                room_id: this.roomInfo.id,
                                sku_index: this.skuIndex
                            }).then(function (t) {
                                that.skuIndex = t.data.sku_index;
                                that.roomUuid = t.data.room_uuid;
                                that.pageUuid = t.data.page_uuid;
                                that.initRoom();
                                that.tipsList = {};
                            });
                            setTimeout(function (t) {
                                that.animateStatus = 2;
                            }, 800);
                        },
                        paySuccess: function (n) {
                            if (2 === this.boxInfo.open_mode) {
                                t.redirectTo({
                                    url: '/pages/orderList/index'
                                });
                                return true;
                            }
                            this.isShowPayCard = false;
                            t.showToast({
                                title: '支付成功, 开盒中',
                                icon: 'none'
                            });
                            this.order = n;
                            this.isOpenPopup = true;
                        },
                        goBack: function () {
                            t.navigateBack({
                                delta: 1
                            });
                        }
                    }
                };
                n.default = f;
            }.call(this, e('543d').default));
        },
        c164: function (t, n, e) {
            'use strict';

            e.d(n, 'b', function () {
                return i;
            });
            e.d(n, 'c', function () {
                return u;
            });
            e.d(n, 'a', function () {
                return o;
            });
            var o = {
                TextNavBar: function () {
                    return e.e('components/TextNavBar/TextNavBar').then(e.bind(null, '9141'));
                },
                PriceDisplay: function () {
                    return e.e('components/PriceDisplay/PriceDisplay').then(e.bind(null, '6b05'));
                },
                OpenBoxPopup: function () {
                    return e.e('components/OpenBoxPopup/OpenBoxPopup').then(e.bind(null, '9fe0'));
                },
                SharePopup: function () {
                    return Promise.all([e.e('common/vendor'), e.e('components/SharePopup/SharePopup')]).then(e.bind(null, 'b677'));
                },
                Danmus: function () {
                    return e.e('components/Danmus/Danmus').then(e.bind(null, '4bc1'));
                },
                uniPopup: function () {
                    return e.e('uni_modules/uni-popup/components/uni-popup/uni-popup').then(e.bind(null, '0fa2'));
                },
                BoxSkuPopup: function () {
                    return e.e('components/BoxSkuPopup/BoxSkuPopup').then(e.bind(null, 'f1cb'));
                },
                FreeTicketFloatBtn: function () {
                    return e.e('components/FreeTicketFloatBtn/FreeTicketFloatBtn').then(e.bind(null, 'ef0dd'));
                },
                HiddenSkuRank: function () {
                    return e.e('components/HiddenSkuRank/HiddenSkuRank').then(e.bind(null, '0818'));
                }
            };
            var i = function () {
                var that = this;
                var n = (that.$createElement, that._self._c, that.boxInfo ? that._f('bigNumberDisplay')(that.userInfo.score) : null);
                if (that.boxInfo) {
                    var e = that.__map(that.skuList, function (n, e) {
                        var o = that.__get_orig(n);
                        var i = that.isExcluded(n);
                        return {
                            $orig: o,
                            m0: i,
                            m1: i ? null : that.isShowed(n)
                        };
                    });
                } else {
                    var e = null;
                }
                that._isMounted ||
                    ((that.e0 = function (n) {
                        that.isSharePopup = true;
                    }),
                    (that.e1 = function (n) {
                        that.isShowHiddenSkuRank = true;
                    }),
                    (that.e2 = function (n) {
                        that.isShowExcludeCard = true;
                    }),
                    (that.e3 = function (n) {
                        that.isShowOpenCard = true;
                    }),
                    (that.e4 = function (n) {
                        return that.$refs.detailPopup.open('bottom');
                    }),
                    (that.e5 = function (n) {
                        that.isShowTips = false;
                    }),
                    (that.e6 = function (n) {
                        that.isShowExcludeCard = false;
                    }),
                    (that.e7 = function (n) {
                        that.isShowOpenCard = false;
                    }),
                    (that.e8 = function (n) {
                        that.isShowPayCard = false;
                    }),
                    (that.e9 = function (n) {
                        that.isSharePopup = false;
                    }),
                    (that.e10 = function (n) {
                        return that.$refs.detailPopup.close();
                    }),
                    (that.e11 = function (n) {
                        that.isShowHiddenSkuRank = false;
                    }));
                that.$mp.data = Object.assign(
                    {},
                    {
                        $root: {
                            f0: n,
                            l0: e
                        }
                    }
                );
            };
            var u = [];
        },
        dc38: function (t, n, e) {
            'use strict';

            e.r(n);
            var o = e('b9f6');
            var i = e.n(o);
            for (var u in o) {
                if (['default'].indexOf(u) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return o[t];
                        });
                    })(u);
                }
            }
            n.default = i.a;
        }
    },
    [['9405', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './index.css';
</style>
